package com.jzbooks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mingPeng
 * @date 2021/5/3 23:00
 * @Description : 轮播图实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("carousel")
@ApiModel("轮播图表")
public class Carousel extends BaseEntity{

    @ApiModelProperty("轮播图地址")
    @TableField(value = "img_src")
    private String imgSrc;

    @ApiModelProperty("权重值")
    @TableField(value = "weight_value")
    private Integer weightValue;

    public static final String COL_IMG_SRC = "img_src";

    public static final String COL_WEIGHT_VALUE = "weight_value";

}
